package com.pd.dao.model;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * 该类对应了easyui的菜单树格式
 *
 * Created by dong peng on 2018/3/1.
 */
public class TreeNode {

    /**
     * 资源id
     */
    private Integer id;

    /**
     * 资源名称
     */
    private String text;

    /**
     * 是否绑定  true 绑定
     */
    private Boolean checked;

    /**
     * 树默认是否展开    open 打开   close 关闭
     */
    private String state = "open";

    private List<TreeNode> children;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public Boolean getChecked() {
        return checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public List<TreeNode> getChildren() {
        return children;
    }

    public void setChildren(List<TreeNode> children) {
        this.children = children;
    }
}
